package com.example.lotterysystem.service;

import com.example.lotterysystem.controller.param.CreatePrizeParam;
import com.example.lotterysystem.controller.param.PageParam;
import com.example.lotterysystem.service.dto.PageListDTO;
import com.example.lotterysystem.service.dto.PrizeDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created with IntelliJ IDEA.
 * Description: 奖品接口
 * User: Spider-Man
 * Date: 2025-09-11
 * Time: 14:34
 */
public interface PrizeService {

    /**
     * 创建单个奖品
     * @param param 奖品名称 , 奖品描述, 奖品价格
     * @param PicFile 奖品图片
     * @return 奖品id
     */
    Long createPrize(CreatePrizeParam param, MultipartFile PicFile);

    /**
     * 翻页查询列表
     * @param param
     * @return
     */
    PageListDTO<PrizeDTO> findPrizeList(PageParam param);
}
